package com.lelefly.base.utils;

import org.apache.commons.lang.StringUtils;

import com.lelefly.handleexecption.ValidateExecption;

public class ParamsUtils {
	
	
	public static void checkParams(String ...args) throws ValidateExecption{
		
		for (int i = 0; i < args.length; i++) {
			
			if (StringUtils.isEmpty(args[i])) {
				
				throw new ValidateExecption("参数错误");
				
			}
		}
	}

}
